package cn.b.sky.user.dao;

import cn.b.sky.user.service.model.ResourceEntity;
import cn.b.sky.user.service.model.condition.ResourceCondition;

import java.util.List;

/**
 * 
 * @ClassName: ResourceDao 
 * @Description:资源数据接口
 * @author: ZhaoXin
 * @date: 2015-7-22 下午02:48:55
 * @version: V1.0  
 *
 */
public interface ResourceDao {
  /**
  * 
  * @Title:selectResourceList 
  * @Description:资源查询 
  * @param resourceCondition
  * @return List<Resource>
  * @author: ZhaoXin
  * @date: 2015-7-22 下午02:42:37
  * @version: V1.0
  */
  public List<ResourceEntity> selectResourceList(ResourceCondition resourceCondition);

  /**
   * 
  * @Title:selectResourceCount 
  * @Description:检索服务的记录数，用于分页
  * @param resourceCondition
  * @return int
  * @author: ZhaoXin
  * @date: 2015-7-22 下午02:42:49
  * @version: V1.0
   */
  public int selectResourceCount(ResourceCondition resourceCondition);

  /**
   * 
  * @Title:selectResource 
  * @Description:查询资源
  * @param resourcecode 资源编号
  * @return Resource
  * @author: ZhaoXin
  * @date: 2015-7-22 下午02:55:46
  * @version: V1.0
   */
  public ResourceEntity selectResource(String resourcecode);

  /**
   * 
  * @Title:insertResource 
  * @Description:新增资源 
  * @param resource void
  * @author: ZhaoXin
  * @date: 2015-7-22 下午02:44:10
  * @version: V1.0
   */
  public void insertResource(ResourceEntity resource);

  /**
   * 
  * @Title:updateResource 
  * @Description:更新资源 
  * @param resource void
  * @author: ZhaoXin
  * @date: 2015-7-22 下午02:44:33
  * @version: V1.0
   */
  public void updateResource(ResourceEntity resource);

  /**
   * 
  * @Title:deleteResource 
  * @Description:删除资源
  * @param resource void
  * @author: ZhaoXin
  * @date: 2015-7-22 下午02:44:54
  * @version: V1.0
   */
  public void deleteResource(String resourcecode);

  /**
   * 
  * @Title:selectAllUnLockResource 
  * @Description:查询所有未锁定资源
  * @return List<ResourceEntity>
  * @author: ZhaoXin
  * @date: 2015-7-29 下午03:21:55
  * @version: V1.0
   */
  public List<ResourceEntity> selectAllUnLockResource();

}
